<template>
  <div class="finishDetail">
    <div style="height:50px">
      <el-button type="primary" style="float:left;margin-left:30px;" @click="goback">返回上一级</el-button>
    </div>
    <el-table :data="defaultData" border style="width: 100%">
      <el-table-column prop="preid" align="center" label="预约编号"></el-table-column>
      <el-table-column prop="pbCode" align="center" label="排班编号"></el-table-column>
      <el-table-column prop="date" align="center" label="预约时间"></el-table-column>
      <el-table-column prop="name" align="center" label="姓名"></el-table-column>
      <el-table-column prop="phoneNum" align="center" label="联系方式"></el-table-column>
      <el-table-column prop="certNum" width="220" align="center" label="身份证"></el-table-column>
      <el-table-column prop="timePart" align="center" label="时间段"></el-table-column>
      <el-table-column prop="active" align="center" label="绿通项目"></el-table-column>
      <el-table-column prop="empid" align="center" label="操作员编号"></el-table-column>
      <el-table-column prop="platform" align="center" label="操作平台"></el-table-column>
    </el-table>
    <el-table :data="tableData" border style="width: 100%;margin-top:20px;">
      <el-table-column prop="empid" align="center" label="诊断结果">
        <span>无发现不良情况</span>
      </el-table-column>
      <el-table-column prop="platform" align="center" label="备注">
        <span>如果仍感觉不适，可留院观察</span>
      </el-table-column>
    </el-table>
  </div>
</template>
<script>
export default {
  data() {
    return {
      defaultData: [],
      tableData: [{}]
    };
  },
  methods: {
    //返回
    goback() {
      this.$router.push({ path: "/lvtong/finish" });
    }
  },
  mounted() {
    var data = this.$route.params.data;
    if (data == undefined) {
      this.goback();
    } else {
      this.defaultData.push(data);
    }
  }
};
</script>
<style lang="scss" scoped>
.finishDetail {
  margin-top: 55px;
}
</style>